home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
text
/
misc
/
nroff.lha
/
nroff
/
tests.shar.Z
/
tests.shar
/
ex1.out
< prev
next >
Wrap
Text File
|
1998-03-09
|
3KB
|
133 lines
NROFF Report Formatting
by
Bill Rosenkranz
rosenkra@convex.com
Nroff is a text processor and formatter based on the design
provided in "Software Tools" by Kernighan and Plauger. It has
been modified to closely resemble the Unix(tm) nroff command.
The text and commands found in the file(s) are processed to
generate formatted text. Note that one (and only one) of the
files can be "-" which reads input from stdin at that point. The
output always goes to stdout which can be redirected by the
shell. The -o option lets you redirect error output to the
specified file rather than stderr. Debugging information always
goes to the file "nroff.dbg" and is generally used only for
program development.
Nroff recognizes the following environment variables from
the shell.
An alternate directory to find the files tmac.* ("." for
example). The default is c:\lib\tmac under TOS and /usr/lib/tmac
under Minix or Unix(tm).
An alternate directory to place any temporary files. The
default is the current directory.
Commands typically are distinguished by a period in column
one of the input followed by a two character abbreviation for the
command funtion. The abbreviation may then be followed by an
optional numeric or character argument. The numeric argument may
be an absolute value such as setting the right margin to a
particular column, or the argument may be preceded by a plus
sign or a minus sign to indicate that the parameter should be
modified relative to a previous setting. The following commands
are recognized (those marked "extension" are requests added to
the basic set provided by Unix(tm) nroff):
Begin line adjustment. If fill mode is not on, adjustment
is defered until it is back on. If a type indicator is present,
the adjustment type is changed as follows:
- 1 -
NROFF Report Formatting
Indicator Type
l adjust left margin only
r adjust right margin only
c center
b or n adjust both margins (default)
absent unchanged
Causes the following lines of text to appear in boldface.
The optional argument specifies the number of lines to be typed
in boldface. Boldface and underlining are mutually exclusive
features. The appearance of a boldface command will cause any
underlining to cease.
Causes succeeding text to appear at the top of a new page.
The optional argument specifies the page number for the new
page. The initial value is one and the default value is one more
than the previous page number.
- 2 -